from django_filters import FilterSet
from .models import Post

class PostFilter(FilterSet):
    class Meta:
        model=Post
        fields={
            'publ': ['gt'],
            'title': ['icontains'],
            'author': ['exact'],
        }